home *** CD-ROM | disk | FTP | other *** search
/ Glasklar Interactive Technology / Glasklar Interactive Technology - Disc 1.iso / Technik / BS010.dxr / Interne_1_Filmscript.ls < prev    next >
Encoding:
Text File  |  2000-09-15  |  8.2 KB  |  270 lines

  1. global KapiList, currentlevel, gMarker, gZoom, vbFenster, MIAWfenster, gBasis, oThema, gThema_0, gThema_1, gThema_2, gThema_3, gThema_4, gThema_5, gThema_6, gThema_7, gThema_8, gThema_9, vbThema_i, vbThema_1, vbThema_2, vbThema_3, gPfad, oMarker, Bsx, gHtxt, zoomListe, lupe, lernfilm, vtmarker, gplayed, gErklaer
  2.  
  3. on prepareMovie
  4.   set lernfilm to "LT010"
  5.   xrayweg()
  6.   repeat with j = 107 to 113
  7.     set the visible of sprite j to 0
  8.   end repeat
  9.   set the member of sprite 101 to member 14 of castLib "klappe"
  10.   repeat with j = 95 to 98
  11.     set the visible of sprite j to 0
  12.   end repeat
  13.   set the member of sprite 94 to member 11 of castLib "klappe"
  14.   set the visible of sprite 106 to 0
  15.   set the visible of sprite 115 to 0
  16.   set the visible of sprite 116 to 0
  17.   set the visible of sprite 92 to 0
  18.   set the visible of sprite 119 to 0
  19.   set the visible of sprite 18 to 0
  20.   set the visible of sprite 90 to 0
  21.   set gHtxt to 0
  22.   set KapiList to ["BM010", "BM011", "BM012", "BM013", "BM014", "BM015", "BM016", "BM017", "BM018", "BM019"]
  23.   set the keyDownScript to "leaveme"
  24.   set gThema_0 to "Power stations / Energy (From fire to the wind farm)"
  25.   set gThema_1 to "Battery"
  26.   set gThema_2 to "Incandescent lamp"
  27.   set gThema_3 to "Generator"
  28.   set gThema_4 to "Internal combustion engine"
  29.   set gThema_5 to "Electric motor"
  30.   set gThema_6 to "Combustion power station"
  31.   set gThema_7 to "Nuclear power station"
  32.   set gThema_8 to "Hydroelectric power station"
  33.   set gThema_9 to "Summary"
  34.   set oThema to gThema_0
  35.   set oMarker to "BM010"
  36.   set gBasis to the movieName
  37.   set the visible of sprite 105 to 0
  38.   set the visible of sprite 104 to 0
  39.   if gPfad > 0 then
  40.     set the windowType of window "TourMenu" to 2
  41.     set startrect to the drawRect of window "TourMenu"
  42.     set wintop to the stageTop + 392
  43.     set winleft to the stageLeft + 13
  44.     set winright to winleft + getAt(startrect, 3)
  45.     set winbottom to wintop + getAt(startrect, 4)
  46.     set the rect of window "TourMenu" to rect(winleft, wintop, winright, winbottom)
  47.     moveToFront(window "Tourmenu")
  48.   end if
  49. end
  50.  
  51. on xrayweg
  52.   repeat with i = 29 to 32
  53.     set the visible of sprite i to 0
  54.   end repeat
  55.   set the constraint of sprite 29 to 32
  56.   set the constraint of sprite 30 to 32
  57.   set the constraint of sprite 31 to 32
  58.   repeat with i = 41 to 48
  59.     set the visible of sprite i to 1
  60.   end repeat
  61.   repeat with x = 54 to 80
  62.     set the visible of sprite x to 1
  63.   end repeat
  64. end
  65.  
  66. on startMovie
  67.   set Bsx to 2
  68.   set the mouseDownScript to "myprimary"
  69.   set the volumeLevel of sprite(6) to currentlevel * 51
  70. end
  71.  
  72. on myprimary
  73.   if gPfad > 0 then
  74.     set the windowList to [window "Tourmenu", window "Sound"]
  75.     moveToFront(window "Tourmenu")
  76.   else
  77.     set the windowList to [window "Sound"]
  78.   end if
  79.   set the visible of window "Sound" to 0
  80.   set the visible of sprite 18 to 0
  81.   set the loc of sprite 18 to point(-1000, -1000)
  82.   if the visible of sprite 104 = 1 then
  83.     go(#loop)
  84.   end if
  85.   set the visible of sprite 104 to 1
  86.   set the visible of sprite 104 to 0
  87.   set the visible of sprite 102 to 1
  88.   set the visible of sprite 103 to 1
  89.   set the visible of sprite 119 to 0
  90.   updateStage()
  91.   if gZoom = 1 then
  92.     puppetSound(3, "zoom_back")
  93.   end if
  94.   set gZoom to 0
  95.   puppetSound(1, 0)
  96. end
  97.  
  98. on stopMovie
  99.   forget(window "Vplayer")
  100. end
  101.  
  102. on videoFenster
  103.   set the visible of sprite 104 to 1
  104.   puppetSound(3, "zoom")
  105.   set gZoom to 1
  106.   tell window "Vplayer"
  107.     videowechsel()
  108.   end tell
  109.   tell window "Vplayer"
  110.     startup()
  111.   end tell
  112.   set the windowType of window "Vplayer" to 2
  113.   set startrect to the drawRect of window "Vplayer"
  114.   set wintop to the stageTop + 22
  115.   set winleft to the stageLeft
  116.   set winright to winleft + getAt(startrect, 3)
  117.   set winbottom to wintop + getAt(startrect, 4)
  118.   set the rect of window "Vplayer" to rect(winleft, wintop, winright, winbottom)
  119.   open(window "Vplayer")
  120.   tell window "Vplayer"
  121.     set the movieRate of sprite 6 to 1
  122.   end tell
  123. end
  124.  
  125. on MIAW├╢ffnen
  126.   set the visible of sprite 104 to 1
  127.   updateStage()
  128.   if gPfad > 0 then
  129.     set the windowList to [window "Tourmenu", window "Sound"]
  130.     moveToFront(window "Tourmenu")
  131.   else
  132.     set the windowList to [window "Sound"]
  133.   end if
  134.   set the windowType of window MIAWfenster to 2
  135.   set startrect to the drawRect of window MIAWfenster
  136.   set wintop to the stageTop + 78
  137.   set winleft to the stageLeft + 80
  138.   set winright to winleft + getAt(startrect, 3)
  139.   set winbottom to wintop + getAt(startrect, 4)
  140.   set the rect of window MIAWfenster to rect(winleft, wintop, winright, winbottom)
  141.   open(window MIAWfenster)
  142. end
  143.  
  144. on Sound├╢ffnen
  145.   if gPfad > 0 then
  146.     set the windowList to [window "Tourmenu", window "Sound"]
  147.     moveToFront(window "Tourmenu")
  148.   else
  149.     set the windowList to [window "Sound"]
  150.   end if
  151.   set the visible of sprite 104 to 1
  152.   updateStage()
  153.   set the windowType of window MIAWfenster to 2
  154.   set startrect to the drawRect of window MIAWfenster
  155.   set wintop to the stageTop + 492
  156.   set winleft to the stageLeft + 2
  157.   set winright to winleft + getAt(startrect, 3)
  158.   set winbottom to wintop + getAt(startrect, 4)
  159.   set the rect of window MIAWfenster to rect(winleft, wintop, winright, winbottom)
  160.   open(window MIAWfenster)
  161. end
  162.  
  163. on HILFE├╢ffnen
  164.   set the visible of sprite 104 to 1
  165.   updateStage()
  166.   set the windowType of window MIAWfenster to 2
  167.   set startrect to the drawRect of window MIAWfenster
  168.   set wintop to the stageTop + 493
  169.   set winleft to the stageLeft + 2
  170.   set winright to winleft + getAt(startrect, 3)
  171.   set winbottom to wintop + getAt(startrect, 4)
  172.   set the rect of window MIAWfenster to rect(winleft, wintop, winright, winbottom)
  173.   open(window MIAWfenster)
  174. end
  175.  
  176. on vFenster
  177.   if vtmarker <> VOID then
  178.     set the visible of sprite 104 to 1
  179.     puppetSound(3, "zoom")
  180.     set gZoom to 1
  181.     set the windowType of window vbFenster to 2
  182.     set startrect to the drawRect of window vbFenster
  183.     set wintop to the stageTop + 22
  184.     set winleft to the stageLeft
  185.     set winright to winleft + getAt(startrect, 3)
  186.     set winbottom to wintop + getAt(startrect, 4)
  187.     set the rect of window vbFenster to rect(winleft, wintop, winright, winbottom)
  188.     tell window vbFenster
  189.       go(vtmarker)
  190.     end tell
  191.     open(window vbFenster)
  192.   end if
  193. end
  194.  
  195. on SucheFenster
  196.   set the visible of sprite 104 to 1
  197.   puppetSound(3, "zoom")
  198.   set gZoom to 1
  199.   set the windowType of window vbFenster to 2
  200.   set startrect to the drawRect of window vbFenster
  201.   set wintop to the stageTop + 200
  202.   set winleft to the stageLeft + 290
  203.   set winright to winleft + getAt(startrect, 3)
  204.   set winbottom to wintop + getAt(startrect, 4)
  205.   set the rect of window vbFenster to rect(winleft, wintop, winright, winbottom)
  206.   open(window vbFenster)
  207. end
  208.  
  209. on VB├╢ffnen
  210.   if gPfad > 0 then
  211.     set the windowList to [window "Tourmenu", window "Sound"]
  212.     moveToFront(window "Tourmenu")
  213.   else
  214.     set the windowList to [window "Sound"]
  215.   end if
  216.   set the windowType of window "vbMenu" to 2
  217.   set startrect to the drawRect of window "vbMenu"
  218.   set wintop to the stageTop + 479
  219.   set winleft to the stageLeft + 390
  220.   set winright to winleft + getAt(startrect, 3)
  221.   set winbottom to wintop + getAt(startrect, 4)
  222.   set the rect of window "vbMenu" to rect(winleft, wintop, winright, winbottom)
  223.   tell window "vbMenu"
  224.     set the text of member "vb_1" to vbThema_1
  225.   end tell
  226.   tell window "vbMenu"
  227.     set the text of member "vb_2" to vbThema_2
  228.   end tell
  229.   tell window "vbMenu"
  230.     set the text of member "vb_i" to vbThema_i
  231.   end tell
  232.   open(window "vbMenu")
  233. end
  234.  
  235. on leaveme
  236.   if (the commandDown and ((the key = "q") or (the key = "."))) or (the keyCode = 53) then
  237.     puppetSound(3, "klick")
  238.     go(1, "Abspann")
  239.   end if
  240. end
  241.  
  242. on kapitel├╢ffnen
  243.   set the windowType of window "Kapitel" to 2
  244.   set startrect to the drawRect of window "Kapitel"
  245.   set wintop to the stageTop + 472
  246.   set winleft to the stageLeft
  247.   set winright to winleft + getAt(startrect, 3)
  248.   set winbottom to wintop + getAt(startrect, 4)
  249.   set the rect of window "Kapitel" to rect(winleft, wintop, winright, winbottom)
  250.   open(window "Kapitel")
  251. end
  252.  
  253. on idle
  254.   if (the timer > 60) and (gplayed = 0) then
  255.     startTimer()
  256.     set gplayed to 1
  257.     if not soundBusy(3) then
  258.       if the movieRate of sprite 6 = 0 then
  259.         playSprech()
  260.       end if
  261.     end if
  262.   end if
  263. end
  264.  
  265. on playSprech
  266.   startTimer()
  267.   puppetSound(3, gErklaer)
  268.   startTimer()
  269. end
  270.